home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir36 / zipall12.zip / ZIPALL12.DOC < prev    next >
Text File  |  1993-09-15  |  17KB  |  346 lines

  1.                               
  2.                               
  3.                                    ZIPALL
  4.  
  5.                                 Version 1.2
  6.  
  7.                         Freeware by Michael K. Davis
  8.  
  9.  
  10. Freespace:  the final frontier.
  11.  
  12. ZIPALL is just a collection of .BAT files I wrote to continue on where PKWARE
  13. left off.  They exploit PKZIP and PKUNZIP in a BIG way!  Read on:
  14.   
  15.  
  16.  
  17. WHAT DO THESE .BAT FILES DO?  
  18.  
  19.      They negate the need for whole-drive compression products 
  20.        that slow down your system, consume RAM, and enslave your
  21.          files to a mysterious, proprietary, virtual nowhere. 
  22.            They put YOU back in control of your data! 
  23.            
  24.       --   SPEED!    
  25.            Your applications will execute from files that are
  26.            fully decompressed before the applications even start.  
  27.            
  28.       --   MEMORY!   
  29.            No additional TSR's or device driver's eating your RAM.
  30.  
  31.       --   CONTROL!  
  32.            You decide what's compressed, one application 
  33.            at a time.  Restore to "normal" whenever you want.
  34.            
  35.       --   SIMPLICITY!  
  36.            Three commands to learn:  ZIPALL, UNZIPALL & RESTZIP
  37.            These commands don't even have switches - no syntax to remember!
  38.  
  39.            One command to compress an entire application.
  40.            One command when you're ready to use it.
  41.            One command when you're finished using it.
  42.                      
  43.       --   ERROR RECOVERY!
  44.            Accidentally delete a file, alter a file, "die" in your 
  45.            favorite action game when you were just about to reach
  46.            the highest level!  --> NO PROBLEM...  We're talking about
  47.            the ultimate UNDO here!
  48.  
  49.                      
  50.  
  51. HOW DO YOU USE THESE .BAT FILES?           
  52.  
  53. Put the efficient and reliable PKZIP and PKUNZIP to work to compress entire 
  54. applications, including children subdirectories, if any, into individual .ZIP 
  55. files named ALLFILES.ZIP.  You do this to your choice of any applications on 
  56. your system by simply executing "ZIPALL" at the parent directory of each.  
  57. (No complicated syntax here; it's real simple!)
  58.  
  59. Later, when you want to use an application, just CD to that same directory
  60. and say "UNZIPALL" to restore the original files and children subdirectories!
  61. Then start your application as usual.
  62. (No complicated syntax here, either!) 
  63.  
  64. When you finish using the application, just CD to it's parent directory and
  65. issue "RESTZIP".  It will remove the children subdirectories, if any, and
  66. delete all the files except for ALLFILES.ZIP, after giving you a choice of  
  67. whether or not to update ALLFILES.ZIP with files that have been changed or
  68. added while using the application.  It even shows you what files have been
  69. changed or added before asking you to decide!  
  70. (No complicated syntax here!  Let my .BAT files do the thinking!)
  71.  
  72. Automate the process of decompressing, running and re-compressing an 
  73. application by writing simple .BAT files like this:                                                                      
  74.  
  75.     C:                   -->  goes to the application's drive
  76.     CD C:\WP51           -->  goes to the application's parent directory
  77.     CALL UNZIPALL        -->  decompression before starting the application
  78.     WP                   -->  starts the application
  79.     CALL RESTZIP         -->  re-compression after using the application
  80.  
  81.  
  82.  
  83. WHAT ARE THE ADVANTAGES?
  84.  
  85. When you try it you're going to fall in love with it.  It's non-invasive. 
  86. Just run it against a couple of your applications, to get the feel for it.
  87. Pay attention to your freespace before and after!  There's no virtual bull.
  88. CHKDSK will be giving you real numbers!
  89.  
  90. You'll have a REAL hard disk and when you make changes to your  
  91. AUTOEXEC.BAT or CONFIG.SYS you'll know you've altered the real thing and not 
  92. some virtual image.  
  93.  
  94. When you're in an application, there is no compression product running in 
  95. the background -- you're running on the real drive without the RAM consumption 
  96. and loss of speed associated with mysterious virtual drive products.  
  97.  
  98. PKZIP is as tight a compression as anyone could hope for.  You only have to 
  99. suffer a "wait-while-it-works" during the initial compression of an 
  100. application.  Later, when you go to use an application, you have to wait a 
  101. few moments while it decompresses, but remember that once you've started 
  102. the application, it's running off of fully decompressed files and you haven't 
  103. added another hog TSR to your conventional memory.  When you run RESTZIP, 
  104. after using an application, it restores in a flash --> only files that have 
  105. been changed or added are processed! 
  106.  
  107. RESTZIP is terrific for recovering from accidents, too.  Just exit the 
  108. application and run RESTZIP selecting "N"o changes, when asked.
  109. Then run UNZIPALL again to decompress the whole application to the way it 
  110. looked before you started (and goofed)!
  111.  
  112.  
  113.  
  114. WHAT ARE THE REQUIREMENTS?
  115.                                  
  116. These batch files require PKWARE's PKZ204G (not included) or later versions.  
  117. Note: PKZ204C will work, but it has lot's of buts that are fixed in PKZ204G!  
  118. Also:  MS-DOS 5.0, or later, and PATRI-SOFT's PDEL and PATTR, (included).  
  119. My batch files are freeware, as are two programs I wrote, WHICHWAY.EXE and 
  120. FEED.EXE, but PKWARE and PATRI-SOFT products are Shareware - please register 
  121. with their authors.  You'll only need as much freespace on your drive as
  122. these files consume, and about half as much space as the the first application
  123. you decide to compress.  The freespace will only increase from then on.  
  124.  
  125.  
  126.  
  127. HOW DO YOU INSTALL?
  128.  
  129. 1)  All the files you unzipped from ZIPALL10.ZIP (my distribution file) 
  130.     should be located to a directory of your choice that is in the PATH
  131.     statement of your AUTOEXEC.BAT.  PKWARE's PKZ204G (or later version)
  132.     should also be in the PATH statement.  (Why not put them both in a
  133.     directory called C:\PKWARE?)
  134.     
  135. 2)  If you have chosen to locate my files in a directory called C:\PKWARE,
  136.     you are in luck because you won't have to do the following edit!:
  137.     RESTZIP.BAT and ZIPALL1.BAT must be edited to change all occurrances of
  138.     the string "c:\pkware" to the drive and directory you've chosen.
  139.     This string occurs in an instruction that reads:
  140.     "copy c:\pkware\zipall1.usd"  so ....  you have to put ZIPALL1.USD in  
  141.     C:\PKWARE or do the editing to indicate where it is...  your choice!
  142.  
  143. 3)  Now just boot the machine so that my files and PKWARE's are in the PATH.
  144.  
  145. 4)  Installation completed.
  146.  
  147.  
  148.  
  149. HOW DO YOU START CREATING FREESPACE?    
  150.  
  151.     CD to the parent directory of any application you want to compress and 
  152.     bravely execute ZIPALL.  [Come on in... the water's nice!]  Ok, run your 
  153.     backup program first, if you want to.   
  154.     
  155.     Note the before and after freespace as you go.  Don't run ZIPALL on your 
  156.     DOS directory, other directories that are in your PATH, and certainly not 
  157.     in the Root directory of the drive you boot from!!!
  158.  
  159.     Use UNZIPALL to decompress an application previously compressed with
  160.     ZIPALL and then run the application.  When you exit the application,
  161.     run RESTZIP to restore ALLFILES.ZIP, deleting the application's files 
  162.     and removing children subdirectories, if any (recapturing the freespace.)
  163.  
  164.     Explore some of the other .BAT files I've written.  Some are documented  
  165.     below, but all are well documented within.  
  166.  
  167.  
  168.  
  169. HOW DO YOU AUTOMATE THE DECOMPRESSION AND RE-COMPRESSION OF APPLICATIONS?
  170.  
  171. To automate Decompression, Use and Re-compression of applications on your disk:
  172.  
  173.    1)  Pick an application you'd like to compress and identify it's "parent"
  174.        directory -- the one closest to the drive's root directory.
  175.        
  176.    2)  Identify the startup command normally used to start the application.
  177.  
  178.    3)  Using the DOS CD command (ie: "CD C:\WP51") position yourself in that
  179.        directory.  
  180.    
  181.    4)  Execute ZIPALL.BAT  (ie:  "ZIPALL").  This will reduce the current 
  182.        directory and all of it's children subdirectories, if any, to a
  183.        single file, ALLFILES.ZIP.  Don't worry, in four years, I've never
  184.        seen a bug!  Your data is safe!  But I make no warranties, and your  
  185.        use of these batch files is at your own risk.
  186.    
  187.    5)  If you don't already have one, create a "command directory" that is
  188.        specified in your AUTOEXEC.BAT's PATH statement.  This directory will
  189.        contain .BAT files which can then be executed from any DOS prompt.
  190.        (ie: "MD C:\WORK" and add ";C:\WORK" to the AUTOEXEC.BAT's PATH stmt.)
  191.  
  192.    6)  Write a .BAT file for this directory for each application you intend
  193.        to compress.  It will look something like this:
  194.  
  195.                                    Don't code these comments in BAT files:
  196.       @ECHO OFF
  197.       REM THIS IS C:\WORK\WP.BAT
  198.       REM                       
  199.       C:                        Changes to C: drive (where the application is)
  200.       CD C:\WP51                Changes to Application's main directory
  201.       CALL UNZIPALL          *  Calls UNZIPALL.BAT to decompress ALLFILES.ZIP
  202.       C:\WP51\WP                Executes the Application's startup command
  203.       CD C:\WP51                Changes to Application's main directory
  204.       CALL RESTZIP              Calls RESTZIP.BAT to Re-compress ALLFILES.ZIP
  205.       ECHO ON                   Resets ECHO to ON and displays RESTZIP msgs.
  206.                              
  207.                              *  ALLFILES.ZIP, has been previously created by
  208.                                 executing ZIPALL.BAT against this same
  209.                                 directory to compress all of the application's
  210.                                 contents into the single file.  Use ZIPALL1
  211.                                 instead of ZIPALL if there are child sub-
  212.                                 directories that you don't want to include.
  213.                                 If you use ZIPALL1.BAT, remember to execute   
  214.                                 UNZIPALL against every ALLFILES.ZIP before 
  215.                                 attempting to start the application and run
  216.                                 RESTZIP.BAT against every ALLFILES.ZIP after
  217.                                 exiting the application.  
  218.  
  219.    7)  Now, you can just say "WP" to execute WP.BAT from anywhere on your
  220.        system to Decompress the application, start the application, and then
  221.        Re-Compress the application when you exit it.
  222.  
  223.        Note:  Your must reboot your machine after making changes to your 
  224.               AUTOEXEC.BAT if you want them to be executed.  
  225.               [Duh...]
  226.  
  227.  
  228.  
  229. DESCRIPTIONS OF THE MOST FREQUENTLY USED .BAT FILES: 
  230. (See comments inside any .BAT for more details.)
  231.  
  232.  
  233. Name         Function
  234.             
  235. ZIPALL.BAT   Executed at any DOS prompt, it will compress every file within
  236.              the current subdirectory AND any child directories beneath it
  237.              (including Hidden, System, and Read-only files) into a single
  238.              file called ALLFILES.ZIP, deleting all the original files and
  239.              removing any child subdirectories.  This file must be unzipped  
  240.              with UNZIPALL.BAT or PKUNZIP.EXE using the "-d -Jhrs" switches.
  241.  
  242. UNZIPALL.BAT Executed at the DOS prompt of a directory containing the file
  243.              ALLFILES.ZIP, it will decompress the ZIP file, recreating the
  244.              original files, including any that came from child subdirec-
  245.              tories.  It does NOT delete ALLFILES.ZIP.  The DOS Archive 
  246.              attributes are turned off every file after decompression.
  247.              RESTZIP will check these bits to advise you if any files were
  248.              changed or added at the time you are ready to re-compress.
  249.  
  250. RESTZIP.BAT  This is executed at the DOS prompt of a directory containing
  251.              ALLFILES.ZIP and the decompressed contents of that ZIP file.  It
  252.              deletes all the decompressed files and restore ALLFILES.ZIP as
  253.              the only file in the subdirectory.  If changes were made to the
  254.              files since ALLFILES.ZIP was decompressed by UNZIPALL.BAT and
  255.              you want to keep these changes, you will see a list of those
  256.              changed (or added) files when RESTZIP is executed and you can
  257.              reply with a "U" to update ALLFILES.ZIP with the changed versions
  258.              when prompted.  Replying "N" will make no changes to ALLFILES.ZIP.
  259.              RESTZIP.BAT is much faster than re-execution of ZIPALL1.BAT and
  260.              if you are using a BACKUP utility that does incremental updates
  261.              to a backup diskette pool, RESTZIP.BAT prevents unneccesary
  262.              backup of the ZIP file by using the MS-DOS ATTRIB command to
  263.              turn off the Archive bit when no changes were made.  If changes
  264.              WERE made to ALLFILES.ZIP, it's Archive bit will be turned on,
  265.              making it elligible to your incremental backup program, if any.
  266.  
  267. ZIPALL1.BAT  Executed at any DOS prompt, it will compress ONLY files within
  268.              the CURRENT subdirectory (including hidden and system files) into
  269.              a single file called ALLFILES.ZIP, deleting all original files.
  270.              Children subdirectories are unaffected.  This can be run against 
  271.              every subdirectory of a single application (the parent and all
  272.              it's children), one at a time, if you want to segregrate your 
  273.              control.  Compression density will be the same, but UNZIPALL and
  274.              RESTZIP will have to run against each individual subdirectory, 
  275.              before and after executing the application.  If ZIPALL1.BAT is 
  276.              used, a marker file, named ZIPALL1.USD is left in the directory, 
  277.              alongside ALLFILES.ZIP, as a guide for RESTZIP's execution.
  278.              It will prevent RESTZIP from acting upon child subdirectories
  279.              when ZIPALL1 was used to process only the current directory.
  280.  
  281. ZIPALLT.BAT  This functions just like ZIPALL.BAT with the exception that it
  282.              DOES NOT delete the original files that were compressed to
  283.              create ALLFILES.ZIP.  This allows you to create a (T)emporary
  284.              ALLFILES.ZIP for the purpose of copying the contents of the
  285.              current subdirectory (and its child directories) to another
  286.              location in compressed format.  The recipient must have these
  287.              these .BAT files installed to use UNZIPALL or may simply issue:
  288.              "PKUNZIP ALLFILES -d -Jhrs" to reconstruct the original
  289.              tree structure and retain file attributes.  If the
  290.              recipient does not have PKZ204 and/or these .BAT files, use
  291.              ZIPEX.BAT instead.  (See ZIPEX below.)
  292.  
  293. ZIPALL1T.BAT This functions just like ZIPALLT.BAT with the exception that i
  294.              acts against only the current subdirectory and ignores children
  295.              subdirectories.
  296.  
  297. ZIPEX.BAT    This functions just like ZIPALLT.BAT with the exception that it
  298.              leaves you with ALLFILES.EXE (a self-extracting version of the
  299.              ALLFILES.ZIP that ZIPALLT.BAT would produce).  Like ZIPALLT.BAT,
  300.              the original files remain intact.  Any DOS user can execute
  301.              ALLFILES.EXE to decompress the original directories and files.
  302.              ALLFILES.EXE must be executed with the "-d -Jhrs" switches:
  303.              "ALLFILES -d -Jhrs" to build directories and retain attributes.
  304.  
  305. WHAT'S NEW IN VERSION 1.2? 
  306.  
  307. Added "attrib -h -s -r *.*" instruction ahead of all occurences of calls to 
  308. Patri-Soft's PDEL.EXE.  It does not delete files with the Readonly attribute
  309. unless they are in a subdirectory of the current directory!  The change makes   
  310. it possible for PDEL to cleanup the directory as intended after ALLFILES.ZIP 
  311. is created or updated.
  312.  
  313.  
  314. WHAT WAS NEW IN VERSION 1.1?
  315.  
  316. Added check to stop execution of ZIPALL.BAT when PKZIP returns a non-zero 
  317. errorlevel after trying to create ALLFILES.ZIP.  Handles situations like 
  318. insufficient space on the drive to create the ZIP file.  Made similar change 
  319. to the Update routines within RESTZIP.BAT, when it's trying to update an 
  320. existing ALLFILES.ZIP.
  321.  
  322. Added warning notes to this doc file regarding use of PKZ204C.  (Use
  323. PKZ204G or better, instead.)
  324.  
  325.  
  326.  
  327.  
  328.  
  329.                                        Enjoy,
  330.  
  331.  
  332.                                              Michael K. Davis
  333.                                              
  334.  
  335.                                              I'm not going to tell you 
  336.                                              where I live, because no
  337.                                              one would register this if
  338.                                              it were shareware instead
  339.                                              of freeware, anyway!   
  340.                                              
  341.  
  342.    P.S.:  Don't send me any money.  
  343.           [Duh...]
  344.  
  345.  
  346.